package com.xiong.wuliao.util;

import android.support.v4.app.Fragment;

import com.xiong.wuliao.homefragment.DianyingFragment;
import com.xiong.wuliao.homefragment.JingxuanFragment;
import com.xiong.wuliao.homefragment.ShaonvFragment;
import com.xiong.wuliao.homefragment.XiaodianFragment;
import com.xiong.wuliao.homefragment.ZhishiFragment;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/11/4.
 */
public class FragmentHomeUtil {
    static List<Fragment> fragments = new ArrayList<>();
    private static final JingxuanFragment jingxuanFragment;
    private static final XiaodianFragment xiaodianFragment;
    private static final ShaonvFragment shaonvFragment;
    private static final ZhishiFragment zhishiFragment;
    private static final DianyingFragment dianyingFragment;

    static {
        jingxuanFragment = new JingxuanFragment();
        xiaodianFragment = new XiaodianFragment();
        shaonvFragment = new ShaonvFragment();
        zhishiFragment = new ZhishiFragment();
        dianyingFragment = new DianyingFragment();

        fragments.add(jingxuanFragment);
        fragments.add(xiaodianFragment);
        fragments.add(shaonvFragment);
        fragments.add(zhishiFragment);
        fragments.add(dianyingFragment);
    }

    public static List<Fragment> getFragments(){
        return fragments;
    }

    public static int getFragmentSize(){
        return fragments.size();
    }
}